package com.yueya.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormat {

	public static String getDate(String format) {
		SimpleDateFormat formatter = new SimpleDateFormat(format);
		Date currentTime = new Date();
		return formatter.format(currentTime);
	}

	public static String genQuestNum() {
		SimpleDateFormat formatter = new SimpleDateFormat("ddhhssSSSS");
		Date currentTime = new Date();
		return formatter.format(currentTime);

	}

}
